﻿using System;
using System.Collections.Generic;
using System.Text;
using Soft000.Model;
using System.Data;

namespace Soft000.IDAL
{
    public interface IOnLine : IDALBase<OnLineInfo>
    {
        OnLineInfo GetInfoByIp(string strIp);
        void DeleteTimeOut(int minute);
        /// <summary>
        ///更新用户的最后活动时间
        /// </summary>
        /// <param name="strSystem">操作系统</param>
        /// <param name="strUserName">用户名</param>
        /// <param name="strIp">IP</param>
        void UpdateLastAction(string strSystem, string strUserName, string strIp);
        /// <summary>
        /// 判断指的IP是否已存在（在线）
        /// </summary>
        /// <param name="strIp"></param>
        /// <returns></returns>
        bool Exist(string strIp);
    }
}
